package com.laot.search.service.feignServece;

import org.laot.seacher_master.model.common.BaseResponse;
import org.laot.searchManage.dto.DatasourceApplicationCommitDto;
import org.laot.searchManage.vo.NoticeBoardVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * feign调用公告栏接口
 * @author laoT
 * @date 2024/2/1
 */
@FeignClient(value = "search-manage")
public interface NoticeBoardProviderClient {
    @RequestMapping("/api/noticeBoard/getContent")
    BaseResponse<NoticeBoardVo> getContent();

    @RequestMapping("/api/datasource/application/commit")
    BaseResponse<String> commit(@RequestBody DatasourceApplicationCommitDto dto);
}
